package com.itheima.constructor;

public class Student {
    //构造器
    String name;
    double score;
    public Student() {
        System.out.println("无参构造方法");
    }

    public Student(String name,double score) {
        System.out.println("有参构造方法");
        this.name = name;
        this.score = score;
    }
}
